import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
const router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/monitor'
    },
    {
      path: '/monitor',
      name: 'index',
      component: () => import('@/views/fire/index.vue')
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
});
router.beforeEach((to, from, next) => {
  next();
});
export default router;
